package com.clf.manager.controller;

import com.clf.manager.entity.Currm;
import com.clf.manager.service.CurrmService;
import com.clf.manager.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class CurrmController {

    @Autowired
    CurrmService currmService;

    @RequestMapping("/currms")
    public Result getall(){
        List<Currm> list = currmService.list();
        return Result.succ(list);
    }

}
